package objects;

import java.util.Calendar;

public class AlarmContext {

	private AlarmState currentState;

	public AlarmContext() {
		currentState = new AlarmState() {
		};
		currentState = AlarmState.alarmNotSet;
	}

	public Boolean alarmOn(Calendar time) {
		currentState = currentState.alarmOn(time);
		return true;
	}

	public Boolean alarmOff() {
		currentState = currentState.alarmOff();
		return true;
	}

	public Boolean snooze(int timeLapse) {
		currentState = currentState.snooze(timeLapse);
		return true;
	}

	public Boolean stop() {
		currentState = currentState.stop();
		return true;
	}

	public Boolean setBuzz() {
		currentState.setBuzz();
		return true;
	}

}
